#pragma once
#include <unistd.h>
namespace TaskModule
{
    class Task
    {
    public:
        Task()
        {

        }
        Task(int a,int b):_a(a),_b(b){}
        void Excute()
        {
            //处理任务的时长
            sleep(1);
            _result = _a+_b;
        }
        int Result() {return _result;}
        int A()      {return _a;}
        int B()      {return _b;}
        ~Task(){}
    private:
        int _a;
        int _b;
        int _result;
    };
}